//
//  LBGuideCell.m
//  LoveBeen
//
//  Created by Alex on 16/12/22.
//  Copyright © 2016年 Alex. All rights reserved.
//

#import "LBGuideCell.h"
//#import <Masonry.h>

@interface LBGuideCell ()

@property (weak, nonatomic) UIImageView* backView;

@end

@implementation LBGuideCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    
    
    // 1. 创建背景视图
    UIImageView *backView = [[UIImageView alloc] init];
    
    [self.contentView addSubview:backView];
    
    // 约束
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.equalTo(self.contentView);
    }];
    
    //数据关联
    _backView = backView;

}

- (void)setImageArray:(NSArray *)imageArray {
    _imageArray = imageArray;
    
    _backView.image = [UIImage imageNamed:imageArray[0]];

    
}

@end
